<template>
  <el-card>
    <el-scrollbar max-height="400px">
      <div class="delete-item" v-for="item in deleteList" :key="item.id">
        {{ item.name }}
      </div>
    </el-scrollbar>
  </el-card>
</template>

<script>
import {defineComponent} from "vue";
import {useStore} from 'vuex'

export default defineComponent({
  name: "Delete",
  setup() {
    const store = useStore()
    const deleteList = store.state.delete.deleteList
    return {
      deleteList
    }
  }
})
</script>

<style lang="scss" scoped>
.delete-item {
  height: 30px;
  line-height: 30px;
  font-size: 15px;
  text-align: center;
  padding: 5px 0;
  text-decoration: line-through;
}
</style>
